//
//  XRSelfAddressCell.m
//  XClassRoom
//
//  Created by NeiQuan on 2016/12/8.
//  Copyright © 2016年 Mr-yuwei. All rights reserved.
//

#import "XRSelfAddressCell.h"
#import "AddressModel.h"
@implementation XRSelfAddressCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(AddressModel *)model
{
    _model=model;
    _userName.text=model.userName;
    _phoneLabel.text=model.phone;
    NSString *string=[model.addr stringByAppendingString:model.detail];//剔除换行
    _detailLabel.text=[string stringByReplacingOccurrencesOfString:@"/n" withString:@""];
    if (model.flag==0)
    {
    _flagImage.image=[UIImage imageNamed:@"icon_zhifenda_weixuanzhong"];
    }else
    {
    _flagImage.image=[UIImage imageNamed:@"shangcheng_icon_xuanzhong"];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
